export const playMode = {
  listPlay: 0,
  loopPlay: 1,
  // randomPlay: 2,
  singleCycle: 3
};

export const playModeText = {
  [playMode.listPlay]: {
    value: [playMode.listPlay],
    text: "列表播放",
    icon: "icon-iconfront-listplay"
  },
  [playMode.loopPlay]: {
    value: [playMode.loopPlay],
    text: "循环播放",
    icon: "icon-xunhuanbofang"
  },
  [playMode.singleCycle]: {
    value: [playMode.singleCycle],
    text: "单曲循环",
    icon: "icon-danquxunhuan"
  }
  // [playMode.randomPlay]: {
  //   value: [playMode.randomPlay],
  //   text: "随机播放",
  //   icon: "icon-suijibofang"
  // }
};

export const playModeList = (() => {
  const list = [];
  for (let i in playMode) {
    list.push(playModeText[playMode[i]]);
  }
  return list;
})();
